export const vertex = /* wgsl */ `
struct Out{
  @builtin(position) position:vec4<f32>,
  @location(0) vPosition:vec3<f32>
}

@vertex
fn main(@location(0) pos: vec3<f32>) -> Out{
  var out: Out; 
  out.vPosition = pos;
  out.position = vec4<f32>(pos, 1.0);
  return out;
}
`;

export const fragment = /* wgsl */ `
@fragment
fn main(@location(0) vPosition: vec3<f32>) -> @location(0) vec4<f32>{
  var pos = vPosition;
  var r = (pos.y) * 1.0;
  var g = (pos.y) * 1.0;
  var b = (pos.x) * 1.0;
  var a = (pos.y) * 1.0;
  return vec4<f32>(r,g,b,a);
}
`;
